package com.feather.common.converter.simple.namematch;

import com.feather.common.converter.ArrayIndex;
import com.feather.common.converter.NameMatch;

/**
 * @author flogyin
 */
public class NameMatch__CaseMatch implements NameMatch {
	private static NameMatch__CaseMatch	nameMatch	= new NameMatch__CaseMatch();

	public static NameMatch instance() {
		return nameMatch;
	}

	@Override
	public int match(String prefix, String key, String field, ArrayIndex arrayindex) {
		return key.equals(field) ? 0 : NOT_MATCH;
	}
}
